interface UtilVarType {
    baseUrl: string;
    code: string | number;
    noContentCode: number;
    ENC: boolean; //是否进行加密
}

const UtilVar: UtilVarType = {
    baseUrl: "",
    code: 401, //登陆过期
    noContentCode: 204, //请求成功但没有内容
    ENC: false,
};
const runtimeType: any = {
    production: () => {},
    //开发环境
    development: () => {
        UtilVar.baseUrl = `http://192.168.1.151:8081/api/`;
    },
    hash: () => {},
};
runtimeType[import.meta.env.MODE] && runtimeType[import.meta.env.MODE]();
export default UtilVar;
